<%@ Page Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="EditWareHouse.aspx.cs" Inherits="Admin_EditWareHouse" Title="Untitled Page" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderAdmin" Runat="Server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
<h3 id="title">Edit WareHouse</h3>
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticUpdates="True" DataSourceID="ObjectDataSource1" GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" Skin="Vista">
        <MasterTableView AutoGenerateColumns="False" CellSpacing="-1" DataSourceID="ObjectDataSource1">
            <Columns>            
            <telerik:GridTemplateColumn UniqueName="TemplateColumn">
                <HeaderTemplate>
                   <asp:LinkButton Font-Underline="true" ID="btnInsert" CommandName="InitInsert" runat="server">New Record</asp:LinkButton>  
                </HeaderTemplate>             
                <ItemTemplate>
                    <asp:LinkButton Font-Underline="true" ID="btnEdit" CommandName="Edit" runat="server">Edit</asp:LinkButton>                     
                </ItemTemplate>
            </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="WarehouseID" DataType="System.Int32" HeaderText="WarehouseID"
                    SortExpression="WarehouseID" UniqueName="WarehouseID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FactoryID" DataType="System.Int32" HeaderText="FactoryID"
                    SortExpression="FactoryID" UniqueName="FactoryID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="WarehouseName" HeaderText="WarehouseName" SortExpression="WarehouseName"
                    UniqueName="WarehouseName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Location" HeaderText="Location" SortExpression="Location"
                    UniqueName="Location">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn UniqueName="EditCommandColumn1">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="Entities.WareHouseInfo" InsertMethod="Insert" SelectMethod="GetAll" TypeName="Bll.WareHouseBll" UpdateMethod="Update"></asp:ObjectDataSource>
</asp:Content>

